package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:char(11);not null"`
	Password string `gorm:"type:char(32);not null"`
}
type Goods struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(40);not null"`
	Details string  `gorm:"type:varchar(100);not null"`
	Price   float64 `gorm:"type:decimal(10,2);not null"`
	Image   string  `gorm:"type:varchar(500);not null"`
	UserId  int     `gorm:"type:int(11);not null"`
}
